/**
 * Project Reactor
 */


#ifndef _TCPSERVER_H
#define _TCPSERVER_H

#include "EventLoop.h"
#include "Acceptor.h"

class TcpServer {
public: 
    
TcpServer(const string &ip,unsigned short port);
    
~TcpServer();
    
void start();
    
void stop();
    
void setAllCallback(TcpConnectionCallback &&tcc1,
    TcpConnectionCallback &&tcc2,TcpConnectionCallback &&tcc3);
private: 
    EventLoop m_evt_loop;
    Acceptor m_acceptor;
};

#endif //_TCPSERVER_H